package cn.moningxi.service.impl;

import cn.moningxi.bean.GArticle;
import cn.moningxi.mapper.GArticleMapper;
import cn.moningxi.service.GArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GArticleServiceImpl implements GArticleService {
    @Autowired
    GArticleMapper gArticleMapper;

    /**
     * 获取热门文章数据
     * @return
     */
    @Override
    public List<GArticle> getHotList() {
        return gArticleMapper.getHotList();
    }
}
